home *** CD-ROM | disk | FTP | other *** search
- Trouble Shooting Ptolemy
- ------------------------
-
- This section is a collection common difficulties encountered
- when ptolemy is installed. This list is, of course, by no means
- complete. If you can't find your particular problem here, refer
- to "Additional Resources" at the end of this section.
-
- 1. Permission Denied
-
- If when you start pigi you get the message "permission
- denied" and the Ptolemy greeting window fails to pop up, then Vem
- was unable to start pigiRpc, the associated Ptolemy process.
- This process is started using the Unix "rsh" command. This com-
- mand can fail if your workstation does not have networking
- enabled, or the user's .rhosts file does not include the name of
- the workstation on which you are running. The following simple
- test checks your networking and .rhosts configuration:
-
- rsh name echo "hello world"
-
- where "name" is the name of your workstation. If you get back
- "hello world", then your workstation networking is correct. If
- you get the "permission denied" message again, then either your
- .rhosts is incorrect or networking is turned off on your worksta-
- tion. If the latter is the problem, please ask your system
- administrator to enable networking.
-
- 2. Graphs Fail to appear
-
- If you succeed in invoking pigi, but graphs do not appear,
- but messages saying that the xgraph program could not be found
- appear instead, your path is set incorrectly. Because pigi uses
- rsh to start up Ptolemy, your path must be defined in you .cshrc
- file, not just in your .login file. This path must be defined
- even when "prompt" is not set, since your .cshrc file will be
- read in non-interactive mode.
-
- 3. Ptolemy won't recompile
-
- You may be using a substantially different version of the
- Gnu compiler. The system is most likely to build if you use the
- same tools that we used originally. The gnu tools we used are
- supplied with the Ptolemy distribution.
-
- 4. Old Flowgraphs won't work.
-
- Several stars that were included in the 0.3.1 release of
- Ptolemy have been renamed. The objective was to adopt a con-
- sistent naming policy across all domains. One major benefit of
- this is the ability to migrate universes and galaxies from one
- domain to another. A consequence, however, is that some of your
- universes and galaxies will have inconsistencies (they will point
- to icons that no longer exist in the current release). Please
- see the file "$PTOLEMY/lib/rename/README." This file explains
- how to upgrade your universes and galaxies to the current
- release.
-
- 5. Error: ld.so: libXext.so.4: not found
-
- You have not installed the shared library needed by Ptolemy
- when it is used under Open Windows. See the "Open Windows" sec-
- tion in the installation guide.
-
- 6. Error, Cannot create wormhole a Code Generation Domain.
-
- When you use a galaxy, there are two conditions that can cause a
- wormhole to form: either the Domain is different on the inside
- and the outside, or the Target is different. In the Ptolemy 0.4
- release, we do not yet support the latter case in any domain.
- So the Target inside any galaxy should be <parent>. Unfortunately,
- if it isn't <parent>, Ptolemy will not even make an icon for it.
-
- So the error will typically occur as follows:
-
- You develop a Universe, choose a Target, change its parameters,
- and test the Universe. Happy that it works, you replace the I/O
- stars with terminals to turn it into a Galaxy. Now you try to make
- an icon, and Ptolemy complains:
- Error: No wormhole implemented for domain CGC
- The problem is that the Target is not <parent>.
- Set the Target to <parent>, and then you can make an icon
- and use it in the expected way.
-
- 7. Black and White Monitors
-
- Although Ptolemy was written with color monitors in mind, it is possible
- to run the GUI with a black and white monitor. Before running pigi,
- do the following command:
-
- setenv PIGIBW
-
- This will set up the color map so that the icons will be readable in
- black and white.
-
- 8. Error involving "xedit"
-
- Xedit is a program provided with Ptolemy to display files on your
- screen during a Ptolemy run. If there is some problem with xedit
- that you cannot solve, or you do not like xedit, it is possible to
- change the display program used by Ptolemy. To do this, you need
- to set the PT_DISPLAY environment variable before you run pigi.
- For example, to use PT_DISPLAY to view files in a new xterm window
- with the vi editor, do
-
- setenv PT_DISPLAY "xterm -e vi %s"
-
- The value of the PT_DISPLAY variable is a printf format string with
- one %s in it. That %s is replaced with the file to be viewed, for
- look-inside commands and to view generated code. The default value
- is "xedit %s".
-
- 9. "Inconsistent facet" error when starting pigi
-
- The following error message comes up upon starting pigi:
- ----------------------------------------
- This is VEM version 8-1 (made 28-Feb-91)
- Log file is /dev/null
- Reading cell init.pal:schematic:contents...Inconsistent facet `init.pal:sc
- hematic'
- Use the program `inconsistent' to find the problem
- and the program `octmvlib' to fix it.
- Then you can try to open the facet again.
- Could not open new window
- done
- ----------------------------------------
-
- This is caused by a errant pointer in your the init.pal facet is the
- directory where you started pigi. The simple (but ugly) solution is
- to delete or move init.pal and re-start pigi. Alternatively, you can
- try to fix init.pal with the masters program. Details on the masters
- program may be found in $PTOLEMY/src/utils/masters/doc/overall
-
-
- Additional Resources
- --------------------
- The best, most complete source for information on Ptolemy is
- to be found in the PT manual, the Almagest. Chances are, the
- information you are looking for is in there somewhere.
-
- The entire manual is included in every distribution. A post-
- script version of the manual is also available from the Ptolemy FTP
- site: ptolemy.berkeley.edu. In addition, the printed documentation
- is also available from the ILP office at the following address:
-
- EECS/ERL Industrial Liaison Program Office
- Software Distribution
- 479 Cory Hall
- University of California, Berkeley
- Berkeley, CA 94720
- (510) 643-6687
- email: software@hera.berkeley.edu
-
- The current price is $50. US, but that is subject to change.
- Contact them for the exact fee.
-
- A second source is the "ptolemy-hackers@ohm.berkeley.edu"
- mailing list. This list provides a forum for ptolemy questions
- and issues. Users of the current release who have a Ptolemy ques-
- tion, comment, or think they've found a bug should send mail to
- ptolemy-hackers.
-
- To join ptolemy-hackers, send mail to
- "ptolemy-hackers-request@ohm.berkeley.edu
- with the Subject "ADD ME."
-
- Another source is the Ptolemy ftp archive. To access this,
- use anonymous FTP to ptolemy.berkeley.edu.
-